package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 补贴申请材料业务对象 sys_subsidy_material
 *
 * @author nbacheng
 * @date 2025-08-23
 */

@Data
public class SysSubsidyMaterialBo {

    /**
     * 材料表ID
     */
    @NotNull(message = "材料表ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 补贴编号
     */
    @NotBlank(message = "补贴编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appNum;

    /**
     * 材料上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @NotNull(message = "材料上传时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date uploadTime;

    /**
     * 材料上传人
     */
    @NotBlank(message = "材料上传人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String uploadBy;

    /**
     * 文件名
     */
    @NotBlank(message = "文件名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 文件大小
     */
    @NotBlank(message = "文件大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileSize;

    /**
     * 文件对应得minio位置
     */
    @NotBlank(message = "文件对应得minio位置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String filePath;

    /**
     * 文件存储的id
     */
    @NotBlank(message = "文件存储的id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ossId;


}
